#!/usr/bin/env python

import sys,time
l=0
e= int(time.time())
for line in sys.stdin:
	t = int(time.time())
	l += 1
	if t > e:
		e = t
		qpsFile = open('qps.log', 'w')
		qpsFile.seek(0)
		qpsFile.write(str(l))
		qpsFile.truncate()
		#print l
		qpsFile.close()
		l = 0
